/*
 * Created on Jan 21, 2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.client.webclient;

/**
 * @author mmoore
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class CommandResponseStatus {
	static public CommandResponseStatus NONE = new CommandResponseStatus("none", "Not processed");
	static public CommandResponseStatus SERVER_PROCESSING = new CommandResponseStatus("server-proc", "Server is processing");
	static public CommandResponseStatus FINISHED = new CommandResponseStatus("finished", "Finished");
	static public CommandResponseStatus CONNECTION_ERROR = new CommandResponseStatus("conn-error", "Connection Error");
	static public CommandResponseStatus UNKNOWN_ERROR = new CommandResponseStatus("error", "Unknown Error");

	private String code = null;
	private String description = null;
	
	public CommandResponseStatus(String code, String description) {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * @return
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

}
